package deng.spring.userwebapp.services;

import java.util.List;

import deng.spring.userwebapp.dal.CrudDao;
import deng.spring.userwebapp.dal.entities.User;

public interface UserService extends CrudDao<User, Long>  {
		
	User authenticate(String username, String password) 
		throws UsernameNotFoundException, PasswordNotMatchedException;
	
	int getUserCount();
	
	List<User> getUsers(int firstResult, int maxResult);
	
	boolean usernameExists(String username);
		
}
